import request from '@/utils/request.js'

export function getPosts(params) {
	return request.get('/posts', params);
}

export function getPostsDetail(id) {
	return request.get('/posts/' + id);
}

export function updateViewCount(id) {
	return request.post('/view-count/?id=' + id);
}
